#ifndef _Motor_h
#define _Motor_h

#include "common.h"
#include "headfile.h"

extern float except_speed;
extern float except_D_speed;
extern float except_C_speed;
extern float g_fRealpulse;
extern float g_fSpeedFilter;
extern float g_fSpeedErrorTemp[5];
extern float g_fSpeedError;
extern float g_fSpeedControlOut;
extern float x;
extern float g_speed_P;
extern float g_speed_P_S;
extern float g_speed_I;
extern float g_speed_p_L;
extern float g_speed_p_M;

extern float Motor_out_left;
extern float Motor_out_right;
extern int8 flag_SOS;

extern float g_nLeftpulse;
extern float g_nRightpulse;

void Motor_control(void);
void Motor_Out(void);

#endif